package com.carcenter.gateway;

import com.carcenter.common.utils.JwtTemplate;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class GatewayApp {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApp.class);
    }
    @Bean
    public IRule rules() {
        return new RandomRule();
    }

    @Bean
    public JwtTemplate jwtTemplate() {
        return new JwtTemplate();
    }
}